import React, {Component} from 'react';
import {View, Text, Image, Center} from 'native-base'
import {Platform, StyleSheet} from "react-native";
class AncientShow extends Component {
    constructor(props) {
        super(props);
        // console.log("img",this.props.route.params.img)
        this.state={
            img:this.props.route.params.img
        }
    }
    render() {
        return (
            <Center _text={{height: 100,width: 100}}>
                <Image source={{
                    uri: (Platform.OS==='android'||(Platform.Os==="iOS"&&Platform.Version>14))
                        ?`${this.state.img}?imageView2/0/format/webp/interlace/1/q/1`
                        :`${this.state.img}`,isStatic: true
                }} fallbackSource={require('../../assets/error.webp')} alt="123" size="2xl" resizeMethod="resize"
                />
            </Center>
        );
    }
}

export default AncientShow;

const styles=StyleSheet.create({
    img:{
        width:'100%',
        height:'100%',
        backgroundPosition:'center',
        backgroundSize:'over'
    }
})